find . -name "*.xpi" | xargs rm -f

cp /volatile/src/mozilla/pythonext/build/pythonext-6.0.0.20110820-WINNT_x86-msvc.xpi     winnt/
cp /volatile/src/mozilla/pythonext/build/pythonext-6.0.0.20110820-Linux_x86-gcc3.xpi     linux-x86/
cp /volatile/src/mozilla/pythonext/build/pythonext-6.0.0.20110820-Linux_x86_64-gcc3.xpi  linux-x86_64/
cp /volatile/src/mozilla/pythonext/build/pythonext-6.0.0.20110820-Darwin_universal.xpi   macosx/

cp ../sshconsole-0.5.xpi     winnt/
cp ../sshconsole-0.5.xpi     linux-x86/
cp ../sshconsole-0.5.xpi     linux-x86_64/
cp ../sshconsole-0.5.xpi     macosx/

cd winnt/ && zip sshconsole-winnt-x86-bundle-ff6.xpi install.rdf *.xpi && cp sshconsole-winnt-x86-bundle-ff6.xpi ../.. && cd ..
cd linux-x86/ && zip sshconsole-linux-x86-bundle-ff6.xpi install.rdf *.xpi && cp sshconsole-linux-x86-bundle-ff6.xpi ../.. && cd ..
cd linux-x86_64/ && zip sshconsole-linux-x86_64-bundle-ff6.xpi install.rdf *.xpi && cp sshconsole-linux-x86_64-bundle-ff6.xpi ../.. && cd ..
cd macosx/ && zip sshconsole-macosx-bundle-ff6.xpi install.rdf *.xpi && cp sshconsole-macosx-bundle-ff6.xpi ../.. && cd ..
